package com.ailink.design.pattern.proxy;

/**
 * Created by Administrator on 2018/8/6
 */
public class CarLogProxy implements Movable {
    private Movable car;

    public CarLogProxy(Movable car) {
        this.car = car;
    }

    @Override
    public void move() {
        System.out.println("开始记录日志");
        this.car.move();
        System.out.println("结束记录日志");
    }
}
